<template>
    <div id="payroll">
        <!-- 搜索条件组件 -->
        <payrollSearch></payrollSearch>
        <!-- 导出，导入，创建按钮 -->
        <div class="payroll-btn">
            <el-button type="primary">导出</el-button>
            <el-button type="primary">导入</el-button>
            <el-button type="primary" @click="createFn">创建</el-button>
        </div>
        <!-- 列表 -->
        <payrollList></payrollList>
        <el-pagination class="pagination"
            background
            layout="prev, pager, next"
            :total="1000">
        </el-pagination>
    </div>
</template>

<script>
// 搜索条件组件
import payrollSearch from './payrollSearch'
import payrollList from './payrollList'
export default {
    components:{
        payrollSearch,
        payrollList
    },
    methods:{
        createFn(){
            this.$router.push("/home/paurollCreate")
        }
    }
}
</script>

<style lang="less" scoped>
#payroll{
    background-color: #ffffff;
    .payroll-btn{
        width: 98%;
        text-align: right;
        margin: 25px auto;
        .el-button--primary{
            width: 90px;
        }
    }
    .pagination{
        margin-top: 20px;
    }
}
</style>